<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "DTD/xhtml1-strict.dtd">
<html>
  <head>
    <title>API docs for &ldquo;pymine.util.minesearch&rdquo;</title>
    <meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
    <link href="apidocs.css" type="text/css" rel="stylesheet" />
    
    
  </head>
  <body>
    <h1 class="module">Module p.u.minesearch</h1>
    <p>
      <span id="part">Part of <a href="pymine.html">pymine</a>.<a href="pymine.util.html">util</a></span>
      
      
    </p>
    <div>
      
    </div>
    <div>code to parse mine search queries and return a useful structure<table class="fieldTable"></table></div>
    
    
    <div id="splitTables">
      <table class="children sortable" id="id156">
  
  
  
  
  <tr class="function">
    
    
    <td>Function</td>
    <td><a href="pymine.util.minesearch.html#parse">parse</a></td>
    <td><span>tokenises string and create a dict of lists of tuple.</span></td>
  </tr>
  
</table>
      
      
    </div>
    
    
    
    <div class="function">
        <a name="pymine.util.minesearch.parse"></a>
        <a name="parse"></a>
        <div class="functionHeader">
        
        def parse(input):
        
      </div>
        <div class="functionBody">
          
          <div>tokenises string and create a dict of lists of tuple.</p>
<p>the dict has three keys: 'require', 'query', 'exclude'</p>
<p>the inner tuples parse stuff like &quot;foo:bar&quot; yielding 
('foo','bar')</p>
<p>where no 'foo:' is given, the 'token' is used.<table class="fieldTable"></table></div>
        </div>
      </div>
    
    <address>
      <a href="index.html">API Documentation</a> for pymine, generated by <a href="http://codespeak.net/~mwh/pydoctor/">pydoctor</a> at 2010-04-07 23:15:24.
    </address>
  </body>
</html>